#include <stdio.h>

int main(int argc, char *argv[]) {

    int a, b, c;
    scanf("%d %d %d", &a, &b, &c);

    for (size_t i = 10; i <= 100; i++)
    {
        if(i%3==a&&i%5==b&&i%7==c){
            printf("%d", i);
            break;
        }

        if(i==100){
            printf("No answer");
        }
        
    }
    
    return 0;
}